# 2010-08-08, Matthew C. Cluver, matthew.cluver@gmail.com
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#  
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

/*

== Class: openvz::vzctl

This class can be used to control a working openvz host.

It will install various packages, ensure the various vz daemons are running
and that the openvz kernel is installed.

Usage:
openvz::vzctl::create { "1006": os_tmpl => "debian-5.0-x86", origin_smpl => "vps.basic", }
openvz::vzctl::set { "1006": parameter1 => "value2", parameter2 => "value2",  }
openvz::vzctl::start { "1006": }
openvz::vzctl::stop { "1006": }
openvz::vzctl::destroy { "1006": }

Create Definition:
This definition creates the virtual Container (CT) if it does not exist already, 
create will not complete the request if a config file already exists. 

		Example:
		openvz::vzctl::create { 1006:
				ct_ip_address	=> '10.10.10.6',
				ct_hostname		=> 'www6.yourdomain.com',
				os_tmpl			=> 'debian-5.0-x86',
				origin_smpl		=> 'vps.basic',
				ct_name			=> 'www6',
		}
	
Set Definition:
This definition sets the specified parameters and values in the config for the container.
	
		Example:
		openvz::vzctl::set { "1006": 
				parameter1 => "value2", 
				parameter2 => "value2",  
		}
	
Start Definition:
Starts the Container
	
		Example:
		openvz::vzctl::start { "1006": }
	
Stop Definition:
Stops the Container
	
		Example:
		openvz::vzctl::stop { "1006": }
	
Destroy Definition:
Removes the Container
	
		Example:
		openvz::vzctl::destroy { "1006": }
	
*/

class openvz::vzctl inherits openvz {


}
